SagaTransition<'State>Union

PackageFCQRS
Represents the next state transition for a saga after processing an event or timeout.

Specification

Kind
Union
Members
8
Examples
0
IsStaySignature
this.IsStay
IsNextStateSignature
this.IsNextState
IsStayExpectingSignature
this.IsStayExpecting
IsStopSagaSignature
this.IsStopSaga
StopSagaSignature
StopSaga

Summary

NameSignatureSynopsis
IsStaythis.IsStayNo description available.
IsNextStatethis.IsNextStateNo description available.
IsStayExpectingthis.IsStayExpectingNo description available.
IsStopSagathis.IsStopSagaNo description available.
StopSagaStopSagaThe saga should stop and terminate
StayStayThe saga should stay in current state without changes
NextStateNextState 'StateThe saga should transition to a new state
StayExpectingStayExpecting ExpectationStay in the current state, but declare that the expectation's commands anticipate a state transition: the framework re-sends them on the schedule and delivers ExpectationExhausted past the deadline.

IsStay

this.IsStay
Member

Returns

bool

IsNextState

this.IsNextState
Member

Returns

bool

IsStayExpecting

this.IsStayExpecting
Member

Returns

bool

IsStopSaga

this.IsStopSaga
Member

Returns

bool

StopSaga

StopSaga
Member
The saga should stop and terminate

Returns

unit

Stay

Stay
Member
The saga should stay in current state without changes

Returns

unit

NextState

NextState 'State
Member
The saga should transition to a new state

Parameters

NameTypeDescription
Item'State

Returns

unit

StayExpecting

StayExpecting Expectation
Member
Stay in the current state, but declare that the expectation's commands anticipate a state transition: the framework re-sends them on the schedule and delivers ExpectationExhausted past the deadline.

Parameters

NameTypeDescription
ItemExpectation

Returns

unit